<template>
	<view class="content">
		<view class="menu-block block" v-for="item in detailList" :key="item.id" @click="navigate('/page_other/entrepot/expert/expertDetail?id='+item.id)">
			<view class="img">
				<img :src="item.faceUrl" />
			</view>
			<view class="text">
				<view class="title">
					{{item.name}}
				</view>
				<view class="small-title">
					{{item.identity}}
				</view>
			</view>
		</view>
	</view>
</template>

<script>
	import {
		getEminentPersonList
	} from '@/api/entrepot.js';
	export default {
		data() {
			return {
				detailList:[
				]
			}
		},
		methods: {
			navigate(url) {
				uni.navigateTo({
					url
				})
			},
			getList() {
				uni.showLoading({
					title: '加载中',
					mask: true
				})
				getEminentPersonList({
					page: 1,
					limit: 100,
				}).then(data => {
					uni.hideLoading()
					this.detailList = data.list
				}).catch(() => {
					uni.hideLoading()
				})
			},
			search() {
				// this.more = true
				// this.getList(true)
			},
		},
		onLoad() {
			this.getList()
		}
	}
</script>

<style lang="scss" scoped>
	.menu-block {
		display: flex;
		width: 92%;
		margin: 30rpx auto;
		background: #fff;
		border-radius: 12px;
		padding: 30rpx;
		.img{
			width: 170rpx;
			height: 200rpx;
			margin-right: 20rpx;
			img{
				width: 100%;
				height: 100%;
				border-radius: 15rpx;
			}
		}
		.text{
			display: flex;
			flex-direction: column;
			justify-content: center;
			width: calc((100% - 200rpx)/1);
			.title{
				font-size: 36rpx;
				color: #3D3D3D;
				margin-bottom: 15rpx;
			}
			.small-title{
				line-height: 35rpx;
				font-size: 28rpx;
				color: #767676;
				overflow: hidden;
				text-overflow: ellipsis;
				display: -webkit-box;
				-webkit-line-clamp: 3;
				-webkit-box-orient: vertical;
			}
			
		}
	}
</style>